<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'IndexController@index');

Route::get('/home', 'IndexController@home');

Route::get('/profile/{username?}', 'IndexController@profile');

Route::get('/timeline', 'IndexController@timeline');

Route::get('/test','IndexController@test');
Route::post('/register','IndexController@register');
Route::post('/login','IndexController@login');
Route::get('/logout','IndexController@logout');
Route::post('/post','IndexController@post');
Route::get('/follow/{uid}','IndexController@follow'); //关注
Route::get('/queue','IndexController@queue'); //队列操作
Route::get('/mongodb','IndexController@mongodb'); //mongodb测试
Route::get('/url','IndexController@url'); //url